package cn.alm.template_backend_project.mapper;

import cn.alm.template_backend_project.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    /**
     * 根据用户名查询用户
     */
    User findByUsername(@Param("username") String username);

    /**
     * 根据用户名和密码查询用户
     */
    User findByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
}